<?php 
  if (!isset($_SESSION['a_user_id']) || $_SESSION['a_user_id'] <= 0) {
     header("Location: denglu.php");
     exit;
  }
?>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1>后台管理中心</h1>
  </div>
  <div class="head-l" style="display:flex;justify-content: space-between;align-items: center; ">
    <div>
    <a class="button button-little bg-green" href="/" target="_blank"><span class="icon-home"></span> 前台首页</a>
   &nbsp;&nbsp;<a class="button button-little bg-red" href="denglu.php?type=logout"><span class="icon-power-off"></span> 退出登录</a>
   </div>
   <div style="color:#fff;margin-left:20px">欢迎 <?php echo $_SESSION['username']; ?>,登录系统</div>
  </div>
</div>
<div class="leftnav">
  <div class="leftnav-title"><strong>菜单列表</strong></div>
  <h2>用户管理</h2>
  <ul style="display:block">
    <li><a href="user_list.php" target="right">用户列表</a></li>
    <li><a href="user_add.php" target="right">用户添加</a></li>
  </ul>  
  <h2>捐助项目管理</h2>
  <ul>
    <li><a href="donation_project_list.php" target="right">捐助项目列表</a></li>
    <li><a href="donation_project_add.php" target="right">捐助项目添加</a></li>
  </ul>   
  <h2>志愿者信息管理</h2>
  <ul>
    <li><a href="volunteer_list.php" target="right">志愿者报名列表</a></li>
    <li><a href="zhaomu_list.php" target="right">志愿者招募列表</a></li>
    <li><a href="zhaomu_add.php" target="right">志愿者招募添加</a></li>
  </ul> 
  <h2>资源管理</h2>
  <ul>
    <li><a href="resource_list.php" target="right"><span class="icon-caret-right"></span>资源列表</a></li>
    <li><a href="resource_add.php" target="right"><span class="icon-caret-right"></span>资源添加</a></li>
  </ul>
</div>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  })
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
  })
});
</script>
<ul class="bread">
  <li><a href="#" target="right" class="icon-home">首页</a></li>
 